#include <iostream>

#include "message.hpp"

int main()
{
    rpc::RpcRequest::ptr rpcPtr = rpc::MessageFactory::create<rpc::RpcRequest>();
    Json::Value param;
    param["num1"] = 11;
    param["num2"] = 22;
    rpcPtr->setMethod("Add");
    rpcPtr->setParams(param);

    std::string str = rpcPtr->serialize();
    std::cout << str << std::endl;

    return 0;
}